import Login from './views/Login.vue'
import NotFound from './views/404.vue'
import Home from './views/Home.vue'
import Main from './views/Main.vue'
import echarts from './views/charts/echarts.vue'
//引入自己的
import dept from './views/org/dept/department'
//引入数据字典的
import details from './views/org/details/SystemDictionaryDetail.vue'
import types from './views/org/types/SystemDictionaryType.vue'
import ShopRegister from "./views/ShopRegister";

let routes = [
    {
        path: '/login',
        component: Login,
        name: '',
        hidden: true
    },
    {
        path: '/404',
        component: NotFound,
        name: '',
        hidden: true
    },
    {
        path: '/shopRegister',
        component: ShopRegister,
        name: '',
        hidden: true
    },
    {
        path: '/',
        component: Home,
        name: 'Charts',
        leaf: true,//只有一个节点
        iconCls: 'fa fa-bar-chart',
        children: [
            { path: '/echarts', component: echarts, name: 'echarts' }
        ]
    },
    //{ path: '/main', component: Main },
    {
        path: '/',
        component: Home,
        name: '组织管理',
        iconCls: 'el-icon-message',//图标样式class
        children: [
            { path: '/dept', component: dept, name: '部门管理' },
            /*{ path: '/dept', component: dept, name: '组织管理' },
            { path: '/dept', component: dept, name: '店铺管理' },*/
        ]
    },
    {
        path: '/',
        component: Home,
        name: '数据字典',
        iconCls: 'el-icon-message',//图标样式class
        children: [
            { path: '/details', component: details, name: '系统字典详细信息' },
            { path: '/types', component: types, name: '系统字典类型' },


        ]
    },




    {
        path: '*',
        hidden: true,
        redirect: { path: '/404' }
    }
];

export default routes;